package cn.edu.scau.cmi.wujiaxian.exercise5;

public class Example5_8 {
	
	public static void main(String[] args) {
		int result = Sum.getContinueSum(0, 100);
		System.out.println(result);
	}
	
}

class Sum{
	int x, y, z;
	static int getContinueSum(int start, int end) {
		int sum = 0;
		for (int i = start; i <= end; i++) {
			sum = sum + 1;
		}
		return sum;
	}
}